package gek.uni.aspirant.uml.utils.providers;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.uml2.uml.Namespace;

public class OclContentProvider implements IStructuredContentProvider{

  @Override
  public Object[] getElements(Object inputElement) {
    if (inputElement instanceof Namespace){
      return ((Namespace) inputElement).getOwnedRules().toArray();
    }
      
    return null;
  }

  @Override
  public void dispose() {
    // TODO Auto-generated method stub
    
  }

  @Override
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    // TODO Auto-generated method stub
    
  }


}
